from utils.api import API
from django.conf.urls import url
from system.forms import *
from system.views import views_admin

baseUrl = "/api/system/"

IPOperateAPI = API(IPOperateForm, method='POST', moduleUrl='IPoperate/', urlPrefix=baseUrl)
systemStatusGetAPI = API(SystemStatusGetForm, method='POST', moduleUrl='status/', urlPrefix=baseUrl)
systemScreenAPI = API(SystemScreenForm, method='POST', moduleUrl='find/', urlPrefix=baseUrl)


urlpatterns = [
    url(IPOperateAPI.moduleUrl, views_admin.IPOperate),
    url(systemStatusGetAPI.moduleUrl, views_admin.cpuInfo),
    url(systemScreenAPI.moduleUrl, views_admin.systemScreen),
]